	//显示和隐藏
	function viewcontent(){
		$("#displaycontent").toggle();
		$("#displaytitle").hide();
	}
	//显示和隐藏
	function closecontent(){
		$("#displaycontent").hide();
		$("#displaytitle").toggle();
	}

//跟随用户 
function user_follow(userid,userid_follow){

	if(userid == ''){
		ymPrompt.alert({message:'<br>请登录后再跟随用户^_^',title:'提示'});
		return false;
	}else{
		$.ajax({
			type: "POST",
			url: "index.php?app=user&ac=do&ts=user_follow",
			data: "&userid=" + userid + "&userid_follow=" + userid_follow,
			beforeSend: function(){},
			success: function(result){
				if(result == '1'){
					ymPrompt.alert({message:'<br>用户跟随成功^_^',title:'提示'});setTimeout(function(){ymPrompt.close()},2000);
					window.location.reload(true); 
				}
			}
		});
	}
}

//取消跟随用户
function user_nofollow(userid,userid_follow){
	if(confirm("确定取消跟随吗?")){
		$.ajax({
			type: "POST",
			url: "index.php?app=user&ac=do&ts=user_nofollow",
			data: "&userid=" + userid + "&userid_follow=" + userid_follow,
			beforeSend: function(){},
			success: function(result){
				if(result == '1'){
					ymPrompt.alert({message:'<br>取消跟随成功^_^',title:'提示'});setTimeout(function(){ymPrompt.close()},2000);
					window.location.reload(true); 
				}
			}
		});
	}
}